<template>
	<view>
		<page-head :title="'用户协议'" :headtype="2"></page-head>
		<view class="content marginAuto">
			<uv-parse :content="content"></uv-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				apifun:this.apifun,
				content:''
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData(){
				this.apifun.unirequest('/common/index/protocol','post',{},(res)=>{
					console.log(res)
					if(res.code === 200){
						let datas = res.data;
						this.content = datas;
					}else{
						that.apifun.toast(res.msg)
					}
				},true,true)
			}
		},
	};
</script>

<style scoped lang="scss">
	page{
		background: #FAFAFA;
	}
	.content{
		width:95%;
	}
</style>